SHELL = /bin/bash
start:
	chmod +x ./docker/run-init.sh
	./docker/run-init.sh
	docker-compose start

build:
	docker-compose stop
	docker system prune -f
	docker rmi jupyterhub_app -f
	# rmdir home/ 2>/dev/null
	docker-compose up -d --build

up:
	# export $(cut -d= -f1 conf/app.env)
	# source ./conf/app.env
	# chmod +x ./docker/run-init.sh
	# ./docker/run-init.sh
	docker-compose stop
	docker system prune -f
	docker-compose up -d


upf:
	docker-compose stop
	docker rmi jupyterhub_app -f
	docker system prune -f
	docker-compose up -d
# up-force:
# 	export $(cut -d= -f1 conf/app.env)
# 	source ./conf/app.env
# 	chmod +x ./docker/run-init.sh
# 	./docker/run-init.sh
# 	docker-compose stop
# 	docker system prune -f
# 	docker-compose up -d
	
# stopall:
# 	docker stop $(docker ps -q)
